<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>作文上传 - 作文批改小程序</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <link rel="stylesheet" href="../css/styles.css">
</head>
<body>
  <div class="device-container">
    <div class="status-bar">
      <div></div>
      <div class="time">12:30</div>
      <div class="icons"></div>
    </div>
    
    <div class="app-content">
      <div class="container">
        <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;">
          <h2 style="margin: 0;">作文上传</h2>
          <div class="points-badge" style="background-color: rgba(76, 175, 80, 0.1); color: var(--primary-color); padding: 4px 12px; border-radius: 16px; font-weight: 600; font-size: 14px;">
            <i class="fas fa-coins" style="margin-right: 4px;"></i>
            剩余积分: 5
          </div>
        </div>
        
        <div class="card">
          <h3 style="margin-top: 0; margin-bottom: 16px;">上传作文照片</h3>
          <p style="margin-bottom: 20px; color: var(--dark-gray);">每次批改消耗1积分，请确保照片清晰可见</p>
          
          <input type="file" id="essay-upload" accept="image/*" style="display: none;">
          <div class="upload-area">
            <div class="upload-icon">
              <i class="fas fa-cloud-upload-alt"></i>
            </div>
            <h4>点击上传作文照片</h4>
            <p style="color: var(--dark-gray); margin-top: 8px;">支持JPG、PNG格式</p>
          </div>
        </div>
        
        <div id="preview-container"></div>
        
        <div class="card" style="margin-top: 20px;">
          <h3 style="margin-top: 0; margin-bottom: 16px;">上传须知</h3>
          <div class="list-item">
            <div class="list-item-icon">
              <i class="fas fa-check"></i>
            </div>
            <div class="list-item-content">
              <div class="list-item-title">确保照片清晰</div>
              <div class="list-item-subtitle">避免模糊、阴影或反光</div>
            </div>
          </div>
          
          <div class="list-item">
            <div class="list-item-icon">
              <i class="fas fa-check"></i>
            </div>
            <div class="list-item-content">
              <div class="list-item-title">完整拍摄</div>
              <div class="list-item-subtitle">确保作文内容完整显示</div>
            </div>
          </div>
          
          <div class="list-item">
            <div class="list-item-icon">
              <i class="fas fa-check"></i>
            </div>
            <div class="list-item-content">
              <div class="list-item-title">适当角度</div>
              <div class="list-item-subtitle">尽量垂直拍摄，避免倾斜</div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <div class="tab-bar">
      <div class="tab-item" data-href="home">
        <i class="fas fa-home"></i>
        <span>首页</span>
      </div>
      <div class="tab-item active" data-href="upload">
        <i class="fas fa-camera"></i>
        <span>批改</span>
      </div>
      <div class="tab-item" data-href="recharge">
        <i class="fas fa-coins"></i>
        <span>积分</span>
      </div>
      <div class="tab-item" data-href="profile">
        <i class="fas fa-user"></i>
        <span>我的</span>
      </div>
    </div>
  </div>
  
  <script src="../js/main.js"></script>
</body>
</html> 